package com.jerry.android.VendorDB.Realm;

import io.realm.RealmObject;
import io.realm.annotations.Ignore;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.Required;

public class UserBean extends RealmObject {

    @PrimaryKey
    private int id;

    @Required
    private String name;

    private int age;

    @Ignore
    private String desc;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        System.out.println("id="+id+"   name="+name+"   age="+age+"    desc="+desc);
        return super.toString();
    }
}
